<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Axios入门案例</title>
	</head>
	<body>
		<script src="../js/axios.js"></script>
		<script>
			//1.定义请求前缀
			axios.defaults.baseURL = "http://localhost:8090/vue"
			//2.定义函数
			async function findAll() {
				//解构赋值操作
				let (data: result = await axios.get("/findAll") 
				console.log(result)
			}

			//3.调用函数
			findAll()
		</script>
	</body>
</html>
